package com.huawei.hianalytics.ab.bc.de;

import android.text.TextUtils;
import com.huawei.hianalytics.ab.bc.ab.bc;

public class ab {
    private static ab ab = new ab();
    private final Object bc = new Object();
    private String cd;

    public static ab ab() {
        return ab;
    }

    private String cd() {
        return bc.ab().ab(com.huawei.hianalytics.ab.bc.ab.bc.ab.AES).ab(com.huawei.hianalytics.ab.bc.gh.bc.ab().cd(), com.huawei.hianalytics.ab.bc.ij.ab.bc(com.huawei.hianalytics.ab.ab.bc.ik(), "global_v2", "common_prop", ""));
    }

    private void de() {
        com.huawei.hianalytics.ab.bc.ij.ab.ab(com.huawei.hianalytics.ab.ab.bc.ik(), "global_v2", "common_prop", bc.ab().ab(com.huawei.hianalytics.ab.bc.ab.bc.ab.AES).bc(com.huawei.hianalytics.ab.bc.gh.bc.ab().cd(), this.cd));
    }

    public void ab(String str) {
        synchronized (this.bc) {
            this.cd = str;
            de();
        }
    }

    public String bc() {
        String str;
        synchronized (this.bc) {
            if (TextUtils.isEmpty(this.cd)) {
                this.cd = cd();
            }
            str = this.cd;
        }
        return str;
    }
}
